﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DAL;
public partial class MasterPage : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Tbl_Usuarios CurrentUser = (Tbl_Usuarios)Session["CurrentUser"];
        if (CurrentUser != null)
        {
            if (CurrentUser.iRol_id != 2)//Admin id type
            {
                usuarios_ul.Visible = false;
            }
        }
        else
        {
            Response.Redirect("Credentials.aspx");
        }
    }
}
